<?php
include_once '../function.php';
$user = new User();


if($_GET['request'] == 2){
	if($user->checkMail($_GET['u_mail'])){echo 'true';exit();}
	if($user->checkExits($_GET['u_mail'])){echo "exist";exit();}
	echo "false";
}

if($_GET['request'] == 3){
	if($user->checkLogin()){echo 'true';exit();}
	if($user->checkUserLogin($_GET['mail'],$_GET['pwd'])){echo 'true';exit();}
	echo "false";
}

if($_GET['request'] == 4){
	if($user->loginOut()){echo 'true';exit();}
	echo 'false';
}

if($_GET['request'] == 5){
	head();
}


?>